Fix page number update