fixed the data_cache write flag bug.