fixed segment scaling issue