Fix Errors With Paginate Records