fixes pagination double page advance