fix slice bounds out of range error