Fix up invite sending code a bit