fix removing incorrect path from cache