fix another deprecation warning