Fix keeping/destruction of object selfreference