fixed waitRetry