fix writeback