Fix a deprecation warning. Still have one on the same line, but it's harder to fix.