Fixed error in deprecation warning.