fix it to work with ng-table pager
fix it to work with ng-table pager