fix on ruby1.8