Prevent losing selection on save.