Fixes incorrect node names being set when using `class.representation_wrap`