Fixed duplicate note bug.