fix password restore templates