Fixed exit modal chat issue