# Annoying Bug in the Widget Blueprints

**URL:** <https://forums.unrealengine.com/t/annoying-bug-in-the-widget-blueprints/20039>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 31, 2015, 11:58pm UTC](https://forums.unrealengine.com/t/annoying-bug-in-the-widget-blueprints/20039 "2015-01-31T23:58:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuzzyA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MuzzyA](https://forums.unrealengine.com/u/MuzzyA)\
**Post date:** [January 31, 2015, 11:58pm UTC](https://forums.unrealengine.com/t/annoying-bug-in-the-widget-blueprints/20039/1 "2015-01-31T23:58:54Z")

</div>

I’ve been trying to set up a system for GUI’s so that I can control the Z-Order of windows. That way active windows will be on top.

There are 2 issues that I keep running into.

1. My preferred implementation ( Which is shown below ), the window gets access to another Widget through Player Controller which just has a blank canvas that will hold all of my windows.  
This works perfectly fine! Exactly the way I want to, BUT when I close the editor and try to re-open the project, it will either crash or freeze. The ‘Slot as Canvas Slot’ is what is causing it to do that, I’ve tested this.

 ![crashexpamle.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/e/ae1b5469eaf96d591896e1f49bda724be665f949.png)

1. My second attempt ( Shown Below ), I get access to the blank widget again and just call ‘Set Z Order’ on that, which is a custom function I made myself. Pass the widget needing Z-Order manipulation into it and the function will take care of it. This one does NOT crash or freeze. But it does not work, even though it’s basically exactly the same as the previous example…

 ![invalidexample2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/e/8eccb7bdd1e7c496f9c075a6e0f5d643dc81b522.png)  
 ![invalidexample.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/841d72feddbefa7fc9d545babf6fa77598f32c6e.png)

Some sort of circular reference issue I’m guessing? Anyway, I hope this type of thing is fixed soon.

---

<div class="post-metadata">

**Author:** ![PenguinTD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PenguinTD](https://forums.unrealengine.com/u/PenguinTD)\
**Post date:** [February 1, 2015, 9:16am UTC](https://forums.unrealengine.com/t/annoying-bug-in-the-widget-blueprints/20039/2 "2015-02-01T09:16:08Z")

</div>

You are the victim of circular dependency of using “Cast To” nodes too much.  
Try study more on building Interface BPs and use more of that instead of “Cast To”.
