fixes day of week bug