Fixed warning due to instanceGenerator not being assigned to