Fix compare bug in transformer.