fixed another type error