md bug fix