fixed legend nesting with time values