fix nowrap issue with small devices