fix bug pageing