Fix write back cache in the case of rename