fixing parent class in the api controller