corrected taniX when 0 nodes found