removed possible infinite loop when fallback is empty