Fix pwd hash logic.