Fixed util comparison functions issues