fix policies pdf generation