fixed uisegment bug