fix regression in API