fixed a bug in genLEXPR (== wrong to =)