Fix equipment pagenation function