fix bug retry