diff --git a/lib/OpenLayers/Renderer/Canvas.js b/lib/OpenLayers/Renderer/Canvas.js
index <HASH>..<HASH> 100644
--- a/lib/OpenLayers/Renderer/Canvas.js
+++ b/lib/OpenLayers/Renderer/Canvas.js
@@ -789,7 +789,7 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
         var featureId, feature;
         
         // if the drawing canvas isn't visible, return undefined.
-        if (this.root.style.display === "none") return feature;
+        if (this.root.style.display === "none") { return feature; }
         
         if (this.hitDetection) {
             // this dragging check should go in the feature handler
being a good coder and adding braces around if statement body