fix non-static method called statically

Hi there,
thanks a lot for writing this plugin! I found a small problem and created this pull request for you.