fixed bug in new message detection when we have a single fragment