Fixing typo in c++ api transformation code