fix submit on enter issue with chat