Nodes: type was incorrectly saved

Closes #366