fix Long.compare error