Fix api method