Replenishing deficiency of magnesium and potassium