two small fixes when using stun (reported by Marta Carbone):