Fix inject dependecies on controller and resovle