update polygon draw bug