fix for ruby1.9