register and invite fix