fix detect number