Deliveries on inquiry page bug

Fix #617
The $key variable was missing so the last deliver was always the one to display.