Fixed bugs in password list restore