fix a cdriver bug