fix deprecation warning.