fixed department error on creating event