Fixing minor bug introduced yday