fixed flickering bug on firefox when adjusting polygon