Fix a bug of line alignment