Fixed wrong typehint and method usage [resolves #12] (thx @xificurk)