Bug fixed: refresh chat cause displaying error. Added template data to join to chat form.