fixed calendar bugg