Moved the order of injection