Calling player.shortname() works better.