Fix paginate for index and user