Fixing the code so that the notes are not tied.