fixed dm crash