Negative depth should be 0, not Infinity