depth sorting fixed
depth sorting fixed