Remove depecration warning