fixed a bug with the server and paging