fixed bug: nodes with wrong id's being saved and therefore visualizing wrong