fixed bug with retrys