fix controller errors