Fixed an issue that has been pointed out in findbugs.