d bug fixed