fix number detection