fix length==0