Also fix the restory.py part of bug #13801