Tryed to fix out of bounds slice