Fixed previous commit, error in List.toArray