fixed another potential source for exceptions