fixed bug in ldl_driver