cc/controller: fixed bugs