Preventing infinite loops in broken implementations