fixed controller error