Fixed bug where the order of the notes was inconsistent.