pagination with bugs