fix mag scale factor