fix bug when specifying invalid faction for chathandler