fix a namespace connection error

Can't connect to a namespace after connection established because of the following error:

````
Uncaught TypeError: Cannot call method 'push' of undefined
```