bug with with jruby 

more info in forum https://www.ruby-forum.com/topic/3636709#1058565