fixed pw recovery problem