solve text wraping problem