fix on injections and factory