fix node check