Update tmp file