fixed withRetry with deadline