fix for wrapper