Fix indexing of the result of API 1 calls.

Fixes #2.