Fixed a Code Analysis problem