Scene gloo clean

Apply the same code as #307 applied to scenegraph branch.
This little method fixes things for now, but is not likely a permanent solution ...