Fix element count