depth ordering fixes