Fixed event deletion on update bug