fix NA handling in cummin