Get all objects from ets table

Thanks for the answer !

(also, fixed the bug, thanks for spotting it, my bad!)