fix pagination/search issue. #3.