Corrected a deprecation.