Fix node names for deeper nesting levels.
Fixes #46