fix preferences password update