fixed last note bug