Gui templates

Describe the bug (REQUIRED)
Setting the gui template to the same gui caused the IDE to hung.