fixed as a result of running findbugs over code base.