Fixed a bug with paginate()
Version 0.8.5