fixed bug of vertical line