Fixing inject config bug and no constructor type bug