fixed dead terminal situation