diff --git a/Koha/Booking.pm b/Koha/Booking.pm
index de230e0774..e5297d8d17 100644
--- a/Koha/Booking.pm
+++ b/Koha/Booking.pm
@@ -262,7 +262,7 @@ sub delete {
message_transport_type => 'email',
branchcode => $pickup_library->branchcode,
lang => $patron->lang,
- objects => { booking => $self, branch => $pickup_library }
+ objects => { booking => $self }
);
if ($letter) {
diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml
index b23f9db57e..ec0e2386da 100644
--- a/installer/data/mysql/en/mandatory/sample_notices.yml
+++ b/installer/data/mysql/en/mandatory/sample_notices.yml
@@ -64,7 +64,7 @@ tables:
- "
"
- "Kind regards
"
- "
"
- - "[% branch.branchname %]"
+ - "[% booking.pickup_library.branchname %]"
- module: catalogue
code: TICKET_ACKNOWLEDGE