fix saving note trigger