Fix a reported bug detected via msgrelay