script: hopefully a final fix for the double page thing