Fixed build_invitations()