fix a mistype in testing last item of a message