genrecmp bug fixed.