Match list elements correctly.