Fixes chat example
Merge pull request #484 from lukecampbell/chat_fix

Fixes chat example