fixed md bugs