fixes bug when deleting event in locations tab