Fix to make spell export work properly.