bug fix and jd api