Quick fix to pagecapture script.
Merge.