Bug/read backup

This PR fix the pubkeyscache and error when generating new address.