fix a bug in get note