dispose before clear.