fix hit bdir and probably others