Fix pagination numbers.
Fix problem with editing values.