Fixed inconsistency with other API wrapper.