Fix ajax and del old vars