[terminal] fixed #430