fixed up pagination