fix Scan for typenames