fix for trashed to zero size arrays