bug with retries