Fixed note saving logic