Bug fix of tokenize. magicCheck adds