fixing bug when adding course event -refs #6495