fixed the lookuptags generation.