Fixed a bug with re-connecting to chat when screen orientation changes