fix some r# warnings