fix crash in create chat