messenger: fix an embarrassing bug