Flush file fix