Fixed static analysis violations.