Fixed major bug in es_compare

How the hell did that go unnoticed before now