Small fix for mag setting