fix chatView.js bug