Fixed an error in nodetype action in API