fixed original issue #28
found scope error on reconnect