Fixed couple Code Analysis warnings.