fix for pdf