Small fix

I was getting a error using rails 3 and ruby 1.9.

Changed these lines and it's fixed.