fix number comparison