fix for maxwidth wrapper