Fixed several findbugs reports.