fix error in API

(groups are not allowed in avoid_nodes in register_generate_plant)