ART-1066: fix compare