fixed bug in text_to_number