Fixes pagination jump to number function.