Fix magnetic from true calculation