Ensure text width is set correctly