Fixed silly mistake that would delete all tokens if the first was deleted. Fixed memory leak when deleting tokens.