fix a bug with scene end and sidechat