Fix chat directive but it still does not work well