Fixed potential vulnerabilities which found static analysis tool