Fix bug of calendar