fix findbugs problems

now passes moderate findbugs checking with 0 errors.
that one had to be a genuine bug.