set to default length when columns is zero

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>