Correct order of elements in paste operation