Fixed FindBugs warnings.