fix genscan issue