Fixed a bug with PDF password protection