date bug fixed