fix constructing driver.