fix one deprecation warning