Better state cleanup in hideSceneItem