fixed bug in preferences (2 keys for the same thing) and updated delete-on-encryption