Swap last 2 arguments order for setElement