Don't assign "" to elems as it can later get free()d invalidly