Fixed dependency problem un apicontroller