Fix on mag.h