fix incorrect render order for negative depth