fixed inconsistency when deleting, it now always updates properly on delete