fix the problem of will_paginate and active_admin