fixed undefined tokens on reconnect