fixed wicked bug of missing break statement