fix webchat code