fix issue with not saving files