fix controller init issue