diff --git a/src/lib-sieve/cmd-redirect.c b/src/lib-sieve/cmd-redirect.c
index c848f8236bb09c566c3bd86d039281563857b428..705f9f6dfe6e7e6d6c13b300393f194c3267281e 100644
--- a/src/lib-sieve/cmd-redirect.c
+++ b/src/lib-sieve/cmd-redirect.c
@@ -179,7 +179,7 @@ static bool cmd_redirect_operation_dump
 	if ( sieve_action_opr_optional_dump(denv, address, NULL) != 0 )
 		return FALSE;
 
-	return sieve_opr_string_dump(denv, address, "reason");
+	return sieve_opr_string_dump(denv, address, "address");
 }
 
 /*
diff --git a/src/lib-sieve/plugins/copy/ext-copy.c b/src/lib-sieve/plugins/copy/ext-copy.c
index f45dd84f5eb7eee9b55e66fe1f439ee7f26ea233..08f86c1d3dc84e303c470008ec446cfce239ae0c 100644
--- a/src/lib-sieve/plugins/copy/ext-copy.c
+++ b/src/lib-sieve/plugins/copy/ext-copy.c
@@ -22,6 +22,8 @@
 #include "sieve-interpreter.h"
 #include "sieve-result.h"
 
+#include "sieve-ext-copy.h"
+
 /*
  * Forward declarations
  */
@@ -123,7 +125,7 @@ void sieve_ext_copy_register_tag
 (struct sieve_validator *valdtr, const struct sieve_extension *copy_ext,
 	const char *command)
 {
-	if ( sieve_validator_extension_loaded(valdr, copy_ext) ) {
+	if ( sieve_validator_extension_loaded(valdtr, copy_ext) ) {
 		sieve_validator_register_external_tag
 			(valdtr, command, copy_ext, &copy_tag, SIEVE_OPT_SIDE_EFFECT);
 	}