Fix typo in wrapper_end