fixed invite_only bug