Chord: fixed ID undefined check