fix a bug when top message encounter edgesForExtendedLayout