fixed wallet restore functionality
beta-version