Fix deprecated item error