Fix bugs due to confusion over party() function.

It returns the short code for the party.