fold now throws errors for factors