fix invite emails

[fixes #5]