Fix bug this.api undefined

Ghost User requested to merge am-fix-api into master

Fixes #66 (closed).

Merge request reports