Fix dependency on 'magic' setting