fixed bugs in calendar fragment