fixed destroy controller error