Remove deprecated warning