fix injecting injectedFields bug