Fix event duplication bug when editing event