fix controller generator