fix cbdir treatment