fixed an error on cache flushing system