Fix issue with not updating file in memory.