fix wrong use in break
fix bug caused by typo