Fixed data type issue when parsing API result.