pagination repaired for first tab