Fix bug #1 in API call