Fixed error with deleting events.