fixed double access of controller.