fixed some bugs related to PGP notifications and files encryption