The UV catastrophe wasn't the discrepancy between the prediction and experimental evidence, it was the prediction itself. The idea that intensity would approach infinity as wavelength decreases to 0 was clearly impossible, and yet, contemporary mathematical models based on classical physics...