Fix error in recovery scripts