syntax fix for ruby1.8