Bugfix/issue 368

Fix issue #368 where opening a screen twice from the same parent would cause a crash.