fix bugs(from findbugs).