Fix openfire problems