SPNPTL-20 : fixed comparision logic.