Fixed NPE related to ChatUtil