fix compare error