fix node saving