Hydration certainly helps but can also be magnesium deficiency, since it's a muscle relaxant.