Fix static analysis warnings.