Fixing delete controller bug