fixing a deprecation warning.