fix float in vertical mode