fix exceptions during chat initialisation