I take magnesium for my colonic inertia (everything is still intact). I also agree that that could be causing part of the problem. I realize your levels are low so you need to take it. Try adding calcium supplements to it. Not sure how magnesium/calcium works exactly but a rough explanation is that calcium "sucks" away the magnesium.