Fix the duplicate DM init bug