by the time city officials realized it was the rats that were causing the disease , it was too late , but venice still enforced a decree by which all incoming vessels had to anchor offshore for a full forty days before they would be permitted to unload .