fix flushCache after deleted