Fix incorrect delegation in API