Bug fix duplicate note id