Fix bug in RBD driver.