fixed generating segment lines when skew is changed