temporary workaround paginate bug