fix break and a typo