fixed user invitation bug