Fixed invalid output depth