Fixed error where NAME_NOTE was NAME_TEXT. tests are passing