Fix bug with group attribute.