fixed md bug