fixed d* bug