Fixed the minimaldm example against the latest api