a bug fix of lexial scanner