bugfix in calendar view