fix number detection of a given value