fix report header groups for sql reports