handle links is nil