replace 'id <= element_count_' with 'id < element_count_' in operator[]