Fixed rmagic require case