fix notes permissions data migrate