fixing bug when showing calendar events in groups -refs #6937