fixed MD errors