Why does this faill on creating two small arrays?