fix bug in pager when table inheritence