Fixed view date bug