fixing displayed number of links