Fix break condition