It works with new rubys, syntax fixed.

Fix for syntax changes in ruby.