minor: fixing bug in api generation