restore from file fix