fixed compare error