fixes for "revert from backup"