Fix wrong iteration over ets