Fixed some findbugs warnings.