fixed numer_format and text_format methods