Trying a fix to file saving