Fixed  problem with traits cookie and decoding.