File saving fix