fixes note saving bug