fix fold()