mongo model writer fixup.