fix hash-writer cache-writting issure