Fix to work with ejabberd 14