Fix break on condition after finding the foo