Remove old var reference from do_magic_tags