fix compare script