Fix per-page export bug