fixed updating date bug