Fixed a bug regarding accessing tokens in printing objects.