Make fold work with group field