fixed api controller