Fixed bug in serialization of chords.