fix group by tag so that equal sign is preserved