Fix some findbugs warnings.