fix syntax error reported with recent ruby versions