Fix the minimaldm example against the new api