fixing retry logic
Merge pull request #20 from mateodelnorte/fix/fixing-retry

fixing retry logic