fix crash bug: save unloaded note