Fixes note persisting.