fix pages pagination