Fix deprecated notice