fixed #25 not retrying if max retries not set