fixed problem when nesting values where the first entry has a zero for value