fix bug when trying to do connection retry