fix the project for flush(not manual flush yet