Fix some bugs of node controller.