fixed issue with injected service replacement in compiler pass