Fixed typo in api controller