Fixed delete function(?)