fixed ruby syntax error