Fixed an issue where adding an layer didn't reflect its nodes.