Fix small bug when copy token attributes