This fixed the bug. Next to do is write a script to plot the note.