fix meta character checking bugs