fix segfault on phelma pc
fix dm ~ + test