fix a deprecation warning