fixed slice bounds panic