Fixed some things that FindBugs told me to fix

Signed-off-by: Ollie <dzineit@live.co.uk>