Fix syntax error on Rubies < 2