fixed typescan validation