fix controller loading