Fix typo in wrapper_end

Howdy. And thanks for this.

Just noticed a small typo while reading the source code. So attached is a very simple patch to fix that :)

Thanks again, have a nice day!