fix error using self in api.multi method