fix issues with loading encrypted deterministic wallet