Fix the bug that uses the wrong element in mistake.