fix crashes caused by terrible polyline updates