Fixes for invitations serialization