I had to up my bananas (potassium) and take a magnesuim and zinc combo from blackmores. I found they were so bad a few times I stretched the opposite way so hard in a desperate bid to make them go away that I pulled muscles many times.

Yoga helped too.