Fixed a bug throwing errors on node save.