Unable to connect wifi

Aug 6, 2013
I just installed MIUI v3.8.2 on my HTC Desire HD and everything seem to work fine, except I'm unable to connect wifi. When I enter wifi password the window where password input appears closes and nothing happens. The wifi is denoted as "Saved" in the list. Any ideas how to fix this?