fixed error when choosing an unknown file path to save or load