Fixed bug of empty tokens when initializing tokens