fix the compare error