Found out why set_size was 1 too big