Fix flags being registered in the wrong group.