Small fix for jRuby 1.7.x