fix gensub warning