fix saving notes