Issue #26: fixed method calls seen as function calls

Fixes issue #26