Fix for handling party types in custom objects