Fixed index bug when creating invite from url command