fix node insertion