Fix data comparison