improve limited-width detection