Fixes various bugs with the new calendar view.