Fixed Delete functionality that wasn't working before.