Fixing bug with toArray()