fix the scope so the event editing will work