Fix cosmetic issue with deprecation warnings
[ci skip]