saving/opening bug fixing