fix bug in pagination for active  menu