Fixed deprecated notice.