fix internal and external storage access in recovery