Fixed comparing bug in code generator.