Fix bug causing duplicate page versions.  Handle resizing gracefully.