fix bug about api path