Solved bug when getting two times the elements from cell_array or structure