Fixed a bug for kaminari if the page method changed for willpaginage