fix load_dm