Fixed bug

Fixed bug that prevented the open-pdf feature to work when the package was not yet activated.