If the correct wallet is showing in your application, export the private key (see code below) > create a new wallet > import private key.
dumpprivkey
rename wallet.dat to wallet_old.dat
Restart the application
importprivkey[label] [rescan=true]
I'm still looking for a way to recover a private key (if it's possible) if the above situation isn't the case here. I'll edit this post if I find anything
can you make an example because i have password protect my wallet. please?