diff --git a/examples/Animated/Flock.html b/examples/Animated/Flock.html
index 2cb4863e..23b6522e 100644
--- a/examples/Animated/Flock.html
+++ b/examples/Animated/Flock.html
@@ -282,7 +282,8 @@
 		
 		// Resize the document, whenever the window is resized, 
 		window.onresize = function(event) {
-			size = document.size = [window.innerWidth, window.innerHeight];
+			document.size = [window.innerWidth, window.innerHeight];
+			size = document.size;
 			heartPath.position = document.bounds.center;
 			document.redraw();
 		}