fix bug in number_handler