Chord : fix error when given empty data