calendar date bug fixed