fix the bug of cache for injector