Fixed static analyzer issues.