fixes #6445 - simplify appending of valus.