fix a couple of FindBugs warnings