fix simutaneous typing issue