Version fix array order stable6

backport for #6890 

fixes #6729 for stable6

cc @PVince81 @karlitschek