fix syntax error for rubies newer than 1.8.7