Fix bug w/ document upgrade on a live system.