fix controller error