fix accept API