file saving fix

workaround for saving files