Fix for issue#14. JRuby bug