Fix bug on calendar view.