add current type hightlight and fix unicode type crash issue