Fix bug with createDomChat()