fixed break condition for failed requests