Error in calendar view control