fixed new object bug in visibilty hierarchy