Been having the same problem.
You need to get calcium citrate and magnesium citrate supplements and drink LOTS of water. Take at least 2000mg mag. and 1000mg calcium. The ratio should be 2x1 mag. to cal. at whatever dosage you go with. Basically, if you drink lots of water, your body depletes its supply of these nutrients.
Hope this helps.