bug in wrapper