Fixed a lot of findbugs errors