Fix group creation bug.