Fix typo in remove_messages.