Fix deprecated message