fixed a bug in index url replaced paginate_by with get_paginate_by