fix string/number comparison bug