PIM-1841 : fix comparison operator