fix compare