Fix ribbon overflow.