Fixed bug missed when doing api cleanup