bug fix regarding double typed characters