bug fixed

polarity return value is upper-case "NORM" and "INV"