Fix bug of ANSIParser