Fixed bug when no flag links present.