Fixed Code Analysis Error