Fixes findbugs warnings.