fix syntax error on ruby1.8.7