fix nsRefPtr code example