fix pdf rendering if fields are missing