fix some chat creation bugs