fix matching for restore defaults case