fix bugs in calendar date changed