Fix error, when elements have no data.