Fixing delete method