Fixed a memory leak in the AutoSkillMacro's