Fix a bug in Autoreply.