Fixed bug in calendar