Fixing download pdf issue