Fix bug in the PianoRollLine.