Fixed one incorrect delete function