fixed err "Field mode is required, but not supplied"