fix so that select elements are not treated as arrays