Bug Fix

Fixed bug when deleting last event