Fix deprecated warning.