fixed Ruby syntax error