diff --git a/widgets/content/skins/simple_rectangle/content.html b/widgets/content/skins/simple_rectangle/content.html
index 76b708923..aea9b7366 100644
--- a/widgets/content/skins/simple_rectangle/content.html
+++ b/widgets/content/skins/simple_rectangle/content.html
@@ -1,6 +1,6 @@
-{@$layout_info = Context::get('layout_info')}
+{@$layout_info = Context::get('layout_info') ?? new stdClass();}
{@
if(!$layout_info->primary_color)
@@ -85,4 +85,4 @@
-
\ No newline at end of file
+