Fix delete handler.