Fixed typo in wrapper function