fixed bug where retry would go on forever