fix the problem in mirroring: the segments cross the baseline