committing toArray fix