fix bug for md.load