Fix the polyline problem

Signed-off-by: shzeng <shuai.zeng@outlook.com>