fixed matcher so it will also work with jruby