Fix api path bug.