Fixes top-level API context.
Merge pull request #50 from jmeas/correct-ctx

Fixes top-level API context.