Fix data comparison issue