fix chat open state