Fix allocation for wrapped text