fix pdf on production