Fix magnesium