Fixed issue with will_paginate and .to_a.total_entries, commented