Fix bug in displaying compare num