fix error check and find usage not effected by conditionalSymbols.