Fix crash in scripting plugin on reshow

closes #56
9 jobs for scripting_plugin_crash in 77 minutes and 33 seconds