Fix errors in RestoreMethods dependency check