fix controller a bit when calling from cli.: