fixed elias's weird infinite retries bug