fix incorrect day of week issue