workaround for https://github.com/mislav/will_paginate/issues/271