fixed panic if v is null