fix build with unsaved files