diff --git a/homebox.module b/homebox.module
index 0d0407a..1f444cc 100644
--- a/homebox.module
+++ b/homebox.module
@@ -383,7 +383,9 @@ function homebox_build($page) {
   $row = 0;
   for ($i = 1; $i <= count($regions); $i++) {
     ksort($regions[$i]);
-    $sum_width += $page->settings['widths'][$i];
+    if (!empty($page->settings['widths'][$i])) {
+      $sum_width += $page->settings['widths'][$i];
+    }
     if ($sum_width > 100) {
       $row++;
       $sum_width = 0;
