fix raw terminal