fix all bugs in calendar