fix node detection