minor fix for api controller