fix scann wallet secret

Fixes #1009