Fixing the delete controller.