fixing stupid bug for editing an event