fix bug related to specifying precision and width