- Fix delete function