Fixed a bunch of findbugs errors.