Clean up some stuff found by FindBugs

Signed-off-by: Andre Schweiger <andre.spiele@yahoo.de>