fixed pdf duplication