Fix for note editor not collapsing on save