Fix issues reported by FindBugs.