fix controller init bug