Bagged magic trees