fix error with node detection