Fix null  during pre restore