Corrected uncaught IllegalArgumentException.