fix unsaved files collector bug