Fixes adding encryption keys to borgs

adding Encryption keys were not working on borgs. and also causing a run-time error. This should fix it.