controller generator fix