3D: fixed bug related to animating z-indices