fix file list not updated after write