bug fixes with node initialization