fixed pdf export