moat example fixing