Fix for jruby

jruby 1.7.4 (1.9.3p392)
![JRUBY](http://content.screencast.com/users/q666/folders/Jing/media/4c52094b-4684-4aa0-bb1d-0eb7f7bf325f/00000062.png)

ruby-1.9.3-p194
![MRI](http://content.screencast.com/users/q666/folders/Jing/media/c11a1e48-8ad4-4efa-bbb0-236c5df5f81c/00000063.png)