fixed Mg to kg conversion