Fixed trailing duplicated elements