Fix bug that infinitely increase element