PDF GENERATOR / LOYALTY BUG FIX