Fix undefined method error in 1.9.