Cap end bug: some repair possible?

I use more and more the bevel shape function, and I happen to realise that the “cap ends” function has a bug that makes caps separated from the rest of the mesh. Is there an automatic function to weld vertices when they are at the same place?

Select all or select area in which you suspect many vertices being at the same location -> press W -> Remove Double

Be sure to recalculate the normals after that (CTRL+N)

It seems to work! thanks Sanctuary!