fixed a few issues on ChatHub thanks to @davidfowl's suggestions.