fix save/open flow bug