Fixes to Chat Plugin

Minor changes to chat plugin