added fix for node attribute detection