Fixed duplicate notes bug, Ticket0666