Fix some stuff FindBugs has found

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