Bug fix in importing parties from JSON