Fix: toArray does not work