fix: totalWidth was taking mode value not size ><