Fix some things in ruby driver.