will_paginate compatibility fixed