prevent issue of adding keys to encrypted wallet