fix static analysis warnings.