fix: scanner must have lexical after created, but i set it when added to the lexical