Fixed bug in chat feature.