fixed what might have been a bug, and added invitation fail warning